package ru.ncedu.java.dmsi.robots;

import ru.ncedu.java.dmsi.robots.model.Direction;
import ru.ncedu.java.dmsi.robots.model.PointFactory;
import ru.ncedu.java.dmsi.robots.model.Robot;
import ru.ncedu.java.dmsi.robots.strategies.impl.StayShotStrategy;
import ru.ncedu.java.dmsi.robots.world.World;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class Test {
    public static void main( String[] args ) {
        // do something...

        World world = new World(5, 5, 2, 2);
        Robot r = new Robot(PointFactory.getInstance().getPoint(0, 0), new StayShotStrategy(Direction.RIGHT_DIRECTION));
        world.addRobotAnywhere(r);
        world.Out();
        world.Out2();
        for (int i = 0; i < 25; i++) {
            System.out.println("Step" + (i + 1));
            world.doStep();
            world.Out2();
        }
    }
}
